package com.kgc.xs.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.xs.pojo.SalesQuotes;
import com.kgc.xs.pojo.SalesQuotesDetail;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface SalesQuotesRemote {

    @RequestMapping("/selectSalesQuotesByPage")
    @ResponseBody
    ResponseMsg selectSalesQuotesByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/insertSalesQuotes")
    @ResponseBody
    ResponseMsg insertSalesQuotes(@RequestBody Map<String, Object> map);

    @RequestMapping("/updateSalesQuotes")
    @ResponseBody
    ResponseMsg updateSalesQuotes(@RequestBody Map<String, Object> map);

    @RequestMapping("/deleteSalesQuotes")
    @ResponseBody
    ResponseMsg deleteSalesQuotes(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesQuotesDetailByPage")
    @ResponseBody
    ResponseMsg  selectSalesQuotesDetailByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/insertSalesQuotesDetail")
    @ResponseBody
    ResponseMsg insertSalesQuotesDetail(@RequestBody SalesQuotesDetail salesQuotesDetail);

    @RequestMapping("/updateSalesQuotesDetail")
    @ResponseBody
    ResponseMsg updateSalesQuotesDetail(@RequestBody SalesQuotesDetail salesQuotesDetail);

    @RequestMapping("/deleteSalesQuotesDetail")
    @ResponseBody
    ResponseMsg deleteSalesQuotesDetail(@RequestParam("id") int id);

    @RequestMapping("/selectSalesQuotesByCode")
    @ResponseBody
    ResponseMsg selectSalesQuotesByCode(@RequestParam("doCode") String doCode);

    @RequestMapping("/selectSalesQuotesDetailByCode")
    @ResponseBody
    ResponseMsg selectSalesQuotesDetailByCode(@RequestParam("bjCode") String bjCode);

    @RequestMapping("/check")
    @ResponseBody
    ResponseMsg check(@RequestBody Map<String, Object> map);

    //根据客户id获取源单列表

    @RequestMapping("/selectSalesQuotesByCid")
    @ResponseBody
    ResponseMsg selectSalesQuotesByCid(@RequestParam("cid") int cid);






}
